namespace Ellwood.Manage.Common.Core.result;

/// <summary>
/// 统一返回响应结果
/// </summary>
public class ApiResult
{
    /// <summary>
    /// 响应码
    /// </summary>
    public int Code { get; set; }
    
    /// <summary>
    /// 是否正常返回
    /// </summary>
    public bool Success { get; set; }
    
    /// <summary>
    /// 处理消息
    /// </summary>
    public string? Message { get; set; }

}

public class ApiDataResult<T>: ApiResult where T : class
{
    
    /// <summary>
    /// 结果集
    /// </summary>
    public T? Data { get; set; }
    
    /// <summary>
    /// 冗余结果
    /// </summary>
    public object? OValue { get; set; }
    
}